home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2 Examples.sit / Raven 1.2 Examples / Quill / Source / PaneEditDialog.h < prev    next >
Text File  |  1996-12-01  |  2KB  |  91 lines

  1. /*
  2.  *    File:        PaneEditDialog.h
  3.  *    Function:    A dialog box that knows how to edit panes.
  4.  *    Written by:    Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1996 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *    Change History (most recent first):
  10.  *
  11.  *         <->    11/20/96    JDJ        Created (from CPaneDialog)
  12.  */
  13.  
  14. #pragma once
  15.  
  16. #include <ZDialogBox.h>
  17.  
  18.  
  19. //-----------------------------------
  20. //    Forward References
  21. //
  22. class THierarchicalTable;
  23.  
  24.  
  25. // ===================================================================================
  26. //    class CPaneEditDialog
  27. // ===================================================================================
  28. class CPaneEditDialog : public TDialogBox {
  29.     
  30.     typedef TDialogBox Inherited;
  31.     
  32. //-----------------------------------
  33. //    Initialization/Destruction
  34. //
  35. public:
  36.     virtual               ~CPaneEditDialog();
  37.     
  38. protected:
  39.                         CPaneEditDialog();
  40.                         
  41. //-----------------------------------
  42. //    New API
  43. //
  44. public:
  45.     static    void         EditPane(TPane* pane);
  46.     
  47. protected:
  48.     virtual void         SetPane(TPane* pane);
  49.  
  50.     virtual bool         Validate() const;
  51.  
  52.     virtual void         Apply();
  53.     
  54.     virtual void         Commit();
  55.  
  56.     virtual void         Revert();
  57.  
  58. //-----------------------------------
  59. //    Inherited API
  60. //
  61. protected:
  62.     virtual void         OnClose();
  63.     
  64. //-----------------------------------
  65. //    TReanimator Support
  66. //
  67. public:
  68.     static    CPaneEditDialog* Create(ResID id, MCommander* superCommander);
  69.                             
  70.     static     MReanimatable* Create(MReanimatable* parent);
  71.  
  72. protected:
  73.     virtual    void         OnReanimated();
  74.     
  75. //-----------------------------------
  76. //    Internal API
  77. //
  78. protected:
  79.             void         CreateEditors();
  80.             
  81.             Handle         GetTable();
  82.  
  83. //-----------------------------------
  84. //    Member data
  85. //
  86. protected:
  87.     THierarchicalTable*    mTable;
  88.     TPane*                mPane;
  89. };
  90.  
  91.